home *** CD-ROM | disk | FTP | other *** search
- <title>New Extrusion</title>
-
- <script language="EasyScript">
-
- registry = "New\\Model\\Extrusion";
-
- function OnLoad ()
- {
- extrusion = new Extrusion;
- extrusion.setDefaultName ();
-
- radio_size = getRegistryValue (registry, "radio_size", 1);
- user_width = getRegistryValue (registry, "user_width", 640);
- user_height = getRegistryValue (registry, "user_height", 480);
- }
-
- function CreateExtrusion ()
- {
- setRegistryValue (registry, "radio_size", radio_size);
- setRegistryValue (registry, "user_width", user_width);
- setRegistryValue (registry, "user_height", user_height);
-
- width = 320;
- height = 240;
- switch (radio_size){
- case 1:
- width = 320;
- height = 240;
- break;
- case 2:
- width = 480;
- height = 360;
- break;
- case 3:
- width = 640;
- height = 480;
- break;
- case 4:
- width = user_width;
- height = user_height;
- break;}
-
- extrusion.bitmap.width = width;
- extrusion.bitmap.height = height;
- extrusion.bitmap.depth = 3;
- extrusion.bitmap.show_flag = true;
- extrusion.bitmap.background_color_on = true;
-
- if (extrusion.bitmap.create ()){
- extrusion.bitmap.resetCenter ();
- window.returnValue (extrusion);
- window.close ();}
- }
-
- </script>
-
- <body bgcolor="normal" text="#000000" OnLoad="OnLoad()" OnEnter="CreateExtrusion()" translate>
- <div valign=middle>
-
- <table width="100%" cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
- <tr><td valign=top><img src="images/large_bitmap.bitmap">
- <td><table>
- <tr><td>
- <font size=5>Extrusion</font>
- <td><input type="text" size=16 name="extrusion.name">
- </table></table>
-
- <spacer height=4>
-
- <table width=100% cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
- <tr><td>
- <table cellspacing=8 cellpadding=2><tr><td>
- <tr><td><u>Drawing Surface</u>
- <tr><td><spacer height=4>
- <tr><td><input type="radio" name="radio_size" value="1"><a onclick="radio_size=1">320 x 240</a><br>
- <tr><td><input type="radio" name="radio_size" value="2"><a onclick="radio_size=2">480 x 360</a><br>
- <tr><td><input type="radio" name="radio_size" value="3"><a onclick="radio_size=3">640 x 480</a><br>
- <tr><td><input type="radio" name="radio_size" value="4"><a onclick="radio_size=4">Other</a>
- <input type="text" name="user_width" size=5>x
- <input type="text" name="user_height" size=5>
- </table>
- </table>
-
- <spacer height=8>
-
- <table cellspacing=0 cellpadding=0 width="100%">
- <tr><td align=right>
- <a button onMouseUp="CreateExtrusion()" width=+10 height=+2><img src="images/small_bitmap.bitmap" hspace=4>Create extrusion</a>
- <a button onMouseUp="window.close()" width=+20 height=+2><img src="images/small_cancel.bitmap" hspace=4>Cancel</a>
- </table>
-
- <spacer height=4>
-